derivation of demand curve from indifference curve